home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / catman / p_man / cat3 / Text::Tabs.Z / Text::Tabs
Encoding:
Text File  |  1998-10-28  |  1.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      TTTTeeeexxxxtttt::::::::TTTTaaaabbbbssss((((3333))))   22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))     TTTTeeeexxxxtttt::::::::TTTTaaaabbbbssss((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       Text::Tabs --    expand and unexpand tabs per the unix
  10.       _e_x_p_a_n_d(1) and    _u_n_e_x_p_a_n_d(1)
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       use Text::Tabs;
  14.  
  15.       $tabstop = 4;    @lines_without_tabs =
  16.       _e_x_p_a_n_d(@lines_with_tabs); @lines_with_tabs =
  17.       _u_n_e_x_p_a_n_d(@lines_without_tabs);
  18.  
  19.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.       Text::Tabs does about    what the unix utilities    _e_x_p_a_n_d(1) and
  21.       _u_n_e_x_p_a_n_d(1) do.  Given a line    with tabs in it, expand    will
  22.       replace the tabs with    the appropriate    number of spaces.
  23.       Given    a line with or without tabs in it, unexpand will add
  24.       tabs when it can save    bytes by doing so.  Invisible
  25.       compression with plain ascii!
  26.  
  27.      BBBBUUUUGGGGSSSS
  28.       expand doesn't handle    newlines very quickly -- do not    feed
  29.       it an    entire document    in one string.    Instead    feed it    an
  30.       array    of lines.
  31.  
  32.      AAAAUUUUTTTTHHHHOOOORRRR
  33.       David    Muir Sharnoff <muir@idiom.com>
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 10/23/98)
  64.  
  65.  
  66.  
  67.